/**
 * Copyright © 2009 Qasky. All rights reserved.
 *
 * 产品状态管理
 *
 * @author Wang Hongya
 * @version 0.0.0 2019/11/20
 *
 * History:
 * (author, date, desc)
 * (Wang Hongya, 20191120, 添加注释)
 */
const product = {
	state: {
		productListAll:[],// 获取所有的产品列表
    departmentListAll:[],// 获取所有的单位列表
	},
	mutations: {
    getProductAll(state, arg) {
			state.productListAll = arg;
		},
    getDepartmentAll(state, arg) {
      state.departmentListAll = arg;
    },
	},
	actions: {
		setProductAll({ commit }, arg) {
			commit('getProductAll', arg)
		},
		setDepartmentAll({ commit }, arg) {
			commit('getDepartmentAll', arg)
		},
	}
};

export default product
